package com.atung.merchant.vo;


import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Administrator
 */
@Data
public class LoginResponse {

    private String token;
    private String refreshToken;

    public static void main(String[] args) {

        Map<String,String>stringMap=new HashMap<>();
        stringMap.put("code","111");
        stringMap.put("message","你好");
        IotResponse build = IotResponse.builder().code("111").message("2222").build();
        IotResponse iotResponse= JSONObject.parseObject(JSONObject.toJSONString(build), IotResponse.class);
        System.out.println(iotResponse);
    }
}



